package net.moon;

/**
 * @author moonlan
 * date 2021/4/18 18:03
 */
@SuppressWarnings(value = "unused")
public class Director {

    private final PersonBuilder personBuilder;

    public Director(PersonBuilder personBuilder) {
        this.personBuilder = personBuilder;
    }

    public Person construct() {
        personBuilder.buildCloth("洋垃圾");
        personBuilder.buildHari("锡纸烫");
        personBuilder.buildSex("男");
        personBuilder.buildFaceType("鞋拔子脸");
        return personBuilder.person;
    }

}
